// 干掉其他正在运行的node进程

const path = require('path')
const shell = require('shelljs'); //shelljs 更强大

const bat = path.join(__dirname, './killNode.bat')

module.exports = function (pid) {
    // console.log(pid)
    return new Promise((resolve) => {
        // shell.exec(`${bat} ${pid}`)
        console.log('\n\x1b[31m升级前请手动停止前端开发环境，以免升级出错！\n')
        resolve()
    })
}
